package com.hdax.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hdax.entity.CusDrive;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * <p>
 * 试驾表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Repository
public interface CusDriveMapper extends BaseMapper<CusDrive> {

    IPage<CusDrive> findCusDriveNotHandle(IPage<?> page, @Param("map") Map map);
    Integer updateCusDriveCancel(@Param("id") Integer id,@Param("updateTime") String updateTime);
    IPage<CusDrive> findCusDriveIsHandle(IPage<?> page, @Param("map") Map map);
    Integer updateIDCardSource(@Param("IDCardSource")String IDCardSource,@Param("id") Integer id);
    Integer updateDriveCardSource(@Param("driveCardSource")String driveCardSource,@Param("id") Integer id);
    Integer updateNotes(@Param("notes")String notes,@Param("id") Integer id,@Param("updateTime")String updateTime);
    Integer findThisMonthCusDriveCount();
    Integer findCusDriveCount();
    Float findCusDriveChainCompare();
    Map findThisYearCusDriveIncre();
}
